package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lmshe
 * @since 2018-07-12
 */
@TableName("w_project_file")
public class ProjectFile extends Model<ProjectFile> {

    private static final long serialVersionUID = 1L;

    /**
     * 文件生成全路径（本地目录路径）
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 所属项目
     */
	@TableField("project_config_id")
	private Integer projectConfigId;
    /**
     * 文件功能描述
     */
	@TableField("file_desc")
	private String fileDesc;
    /**
     * 文件后缀
     */
	@TableField("file_format")
	private String fileFormat;
    /**
     * 文件本地全路径
     */
	@TableField("file_url")
	private String fileUrl;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getProjectConfigId() {
		return projectConfigId;
	}

	public void setProjectConfigId(Integer projectConfigId) {
		this.projectConfigId = projectConfigId;
	}

	public String getFileDesc() {
		return fileDesc;
	}

	public void setFileDesc(String fileDesc) {
		this.fileDesc = fileDesc;
	}

	public String getFileFormat() {
		return fileFormat;
	}

	public void setFileFormat(String fileFormat) {
		this.fileFormat = fileFormat;
	}

	public String getFileUrl() {
		return fileUrl;
	}

	public void setFileUrl(String fileUrl) {
		this.fileUrl = fileUrl;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ProjectFile{" +
			"id=" + id +
			", projectConfigId=" + projectConfigId +
			", fileDesc=" + fileDesc +
			", fileFormat=" + fileFormat +
			", fileUrl=" + fileUrl +
			"}";
	}
}
